package com.qq.yc;

import java.util.List;
import java.util.Map;

import org.crawutils.Utils;
import org.crawutils.pickcommon.ParseHandle;
import org.crawutils.pickcommon.xmlvo.Entity;
import org.crawutils.pickcommon.xmlvo.ReadTemplate;
import org.jsoup.nodes.Document;

public class GetA extends ParseHandle {


	@Override
	public String templateXml() {
		return "rules/geturls.xml";
	}

	public Map invoke(String html, Map returnMap) {
		try {
			List<String> list=(List<String>)super.parseHtml(html).get("urllist");
			returnMap.put("urllist",list);
			System.out.println("url size: "+list.size());
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}

	@Override
	public void parseHtml(Document doc, ReadTemplate rx,
			List<Entity> entityList, Map<String, Object> map) throws Exception {
		
	}


}
